package com.tis.interfaces.controller.login;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import com.tis.interfaces.controller.CommonFormModel;

public class LoginForm  extends CommonFormModel{
		
	@NotNull
	@Size(min=4, max=200)
	String username;
	
	@NotNull
	@Size(min=4, max=255)
	String password;
	
	String Confirmpassword;
		
	@Pattern(regexp = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", message = "Must be valid email address")
    private String email;
	
	public String getUsername() { return username; }
	
	public void setUsername(String username) { this.username = username; }
	
	public String getPassword() { return password; }
	
	public void setPassword(String password) { this.password = password; }
	
	public String getConfirmpassword() { return Confirmpassword; }
	
	public void setConfirmpassword(String confirmpassword) { Confirmpassword = confirmpassword; }
	
}
